From: Florian Müllner Date: Tue, 1 Apr 2025 14:30:54 +0000 (+0200) Subject: lint: Enforce "no-unused-vars" for catch statements X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~139^2^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c61ae68e7f9fed24efbc974faa6df09b8ef43e14;p=gnome-shell.git lint: Enforce "no-unused-vars" for catch statements Now that we treat unused catch bindings as unused variables, update the eslint rule to enforce it. Part-of: --- diff --git a/lint/eslintrc-shell.yml b/lint/eslintrc-shell.yml index 155474b74..150741dc4 100644 --- a/lint/eslintrc-shell.yml +++ b/lint/eslintrc-shell.yml @@ -12,6 +12,12 @@ rules: - mode: minimum beforeColon: false afterColon: true + no-unused-vars: + - error + # Vars use a suffix _ instead of a prefix because of file-scope private vars + - varsIgnorePattern: (^unused|_$) + argsIgnorePattern: ^(unused|_) + caughtErrors: all prefer-arrow-callback: error jsdoc/require-param-description: off jsdoc/require-jsdoc: